###############################################################################
#    KShootout - online shootout card game.                                   #
#    Copyright (C) 2008, 2009  MacJariel                                      #
#                                                                             #
#    KShootout is free software: you can redistribute it and/or modify        #
#    it under the terms of the GNU General Public License as published by     #
#    the Free Software Foundation, either version 3 of the License, or        #
#    (at your option) any later version.                                      #
#                                                                             #
#    KShootout is distributed in the hope that it will be useful,             #
#    but WITHOUT ANY WARRANTY; without even the implied warranty of           #
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
#    GNU General Public License for more details.                             #
#                                                                             #
#    You should have received a copy of the GNU General Public License        #
#    along with KShootout.  If not, see <http://www.gnu.org/licenses/>.       #
###############################################################################
project(kshootout)

cmake_minimum_required(VERSION 2.6.2)

set(CMAKE_BUILD_TYPE release)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
include(UseDoxygen)

#include(PCHSupport_26)

option(BUILD_CLIENT "Builds client" ON)
option(BUILD_SERVER "Builds server" ON)


if(BUILD_CLIENT)
    find_package(Qt4 4.5.1 COMPONENTS QtCore QtGui QtXml QtNetwork REQUIRED)
else(BUILD_CLIENT)
    find_package(Qt4 4.5.1 COMPONENTS QtCore QtXml QtNetwork REQUIRED)
endif(BUILD_CLIENT)
include(${QT_USE_FILE})

add_subdirectory(src/common)

if(BUILD_CLIENT)
#    add_subdirectory(src/client)
endif(BUILD_CLIENT)

if (BUILD_SERVER)
#    add_subdirectory(src/server)
endif (BUILD_SERVER)
